proc deoped {nick host handle chan -o victim} {
global botnick home organization deopwarn
if {$chan == $home} {
  return 0
  }
if {$victim == "$botnick"} {
if {$deopwarn == "1"} {
  putlog "$nick ($host) deop'd me in $chan"
  putserv "PRIVMSG $home :\002$nick\002 ($host) deop'd me in $chan"
  putserv "PRIVMSG $chan :\002$nick\002 ($host) deop'd me in $chan"
  putserv "PRIVMSG $chan :You have made a serious violation to \002$organization\002.If you want me to stay in here,you MUST op me.A message that $nick deop'd me was sent to $home and someone will be in here to check on it." 
  return 0
  }
  }
  }


